package hello;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.env.Environment;

import com.sirap.basic.tool.C;

@Configuration
public class WebConfig {
    @Value("${ds.userName}")
    private String userName;
    @Autowired
    private Environment environment;
    public void show() {
        C.pl("ds.userName:" + this.userName);
        C.pl("ds.password:" + this.environment.getProperty("ds.password"));
        C.pl("ds.password:" + this.environment.getProperty("mises"));
    }
}